import http from '@/util/http'

export function delFriendLink (id) {
  return http.delete(`/friendLink?id=${id}`)
}

export function friendLinkList (search, current, pageSize) {
  return http.post(`/friendLink/get?pageNo=${current}&pageSize=${pageSize}`, search)
}

export function addFriendLink (data) {
  return http.post('/friendLink', data)
}

export function updateFriendLink (data) {
  return http.put('/friendLink', data)
}
